<?php
include "../function.php";
include "../include/admin.class.php";
$pro=new Product();
$admin = new Admin();
$admin->limit(64);

if(isset($_POST['submit'])){
	if($_POST['user'] != '' && $_POST['pwd'] != '' && $_POST['limit'] != 0){
		$admin->addAdmin($_POST['user'],$_POST['pwd'],$_POST['limit']);
	}
}

if(isset($_GET['del'])){
	$admin->delAdmin($_GET['del']);
}

$u = $admin->getAdmin();
?>